package com.neusoft.hifly.rpc.message.dao;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.neusoft.hifly.core.pojo.ApiResponse;
import com.neusoft.hifly.rpc.message.dao.fallback.MessageFallback;
import com.neusoft.hifly.rpc.message.domain.MsgDTO;

/**
 * Title: 消息服务
 * <p>
 * Description: 消息服务接口
 * <p>
 * Copyright: Copyright (c) 2008
 * <p>
 * Company: 东软汉枫
 *
 * @author lihui
 * @version 1.0.0
 */
@FeignClient(value = "ctcloud-cbb-message", fallbackFactory = MessageFallback.class)
public interface IMessageDao {

	/**
	 * 保存
	 *
	 * @param obj
	 *            消息
	 */
	@RequestMapping(value = "/message/api/v1/msg", method = RequestMethod.POST)
	<T> ApiResponse<T> save(@RequestBody final MsgDTO obj);

}
